package com.atbun.aclservice.service;

import com.atbun.aclservice.entity.AclRole;
import com.atbun.commonutils.R;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author testjava
 * @since 2020-05-23
 */
public interface RoleService extends IService<AclRole> {
//根据角色id删除角色
    R removeRole(String roleId);
//根据用户获取角色数据
    Map<String, Object> findRoleByUserId(String userId);
//根据用户分配角色
    void saveUserRoleRealtionShip(String userId, String[] roleIds);
}
